package star.cloud.asme.flowable.form.leave;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import star.cloud.asme.base.dto.Result;
import star.cloud.asme.base.mybatis.IBaseController;

@RestController
@RequestMapping("/flowable/form/leave")
@RequiredArgsConstructor
public class LeaveController implements IBaseController<Leave> {

    private final LeaveService leaveService;


    @Override
    public Result<Leave> getOneByCondition(String columnName, Object columnValue) {
        return leaveService.getOneByCondition(columnName, columnValue);
    }

    @Override
    public Result<Leave> insertOne(Leave entity) {
        return leaveService.insertOne(entity);
    }

    @Override
    public Result<Leave> updateOne(Leave entity) {
        return leaveService.updateOne(entity);
    }

}